import request from '@/utils/request'

// 详情
export function certificateDetail(params: any) {
    return request.get({ url: '/certificate.Certificate/info', params })
}

// 列表
export function certificateList(params: any) {
    return request.get({ url: '/certificate.Certificate/list', params })
}

// 删除
export function deleteCertificate(params: any) {
    return request.post({ url: '/certificate.Certificate/del', params })
}

//  添加,编辑是同一个接口
export function certificateEdit(params: any) {
    return request.post({ url: '/certificate.Certificate/edit', params })
}

// 分类接口
export function classification(params: any) {
    return request.get({ url: '/certificate.certificate_class/list', params })
}
